package pay.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

@Data
@TableName("address")
public class AddressEntity {
    @TableId(type = IdType.AUTO)
    private Integer id;

    @TableField(value = "user_id")
    private String userId;

    @TableField(value = "province")
    private String province;

    @TableField(value = "province_code")
    private String provinceCode;

    @TableField(value = "city")
    private String city;

    @TableField(value = "city_code")
    private String cityCode;

    @TableField(value = "district")
    private String district;

    @TableField(value = "district_code")
    private String districtCode;

    @TableField(value = "address")
    private String address;

    @TableField(value = "phone")
    private String phone;

    @TableField(value = "name")
    private String name;

    @JsonProperty("default")
    @TableField(value = "is_default")
    private Integer isDefault;

    @TableField(value = "del")
    private Integer del;
}